﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tunneler {
    static class PowerUpGenerator {
        static Random random = new Random();

        public static PowerUp RandomPowerUp() {
            PowerUp ret = null;
            int n = random.Next(6);
            switch (n) {
                case 0:
                    ret = new Heal();
                    break;
                case 1:
                    ret = new Energy();
                    break;
                case 2:
                    ret = new Haste();
                    break;
                case 3:
                    ret = new Slow();
                    break;
                case 4:
                    ret = new RapidFire();
                    break;
                case 5:
                    ret = new Disable();
                    break;
                case 6:
                    ret = new Leak();
                    break;
            }
            return ret;
        }
    }
}
